<?php
class SearchJob extends CWidget
{
	public function init ()
	{
		$this->SearchEvent();
	}
	
	public function SearchEvent ()
	{

		$model = new Job;
        $jobs  = Job::model()->findAll();
		$List= array();
		foreach($jobs as $job)
		{
			$List[]=$job->name;
		}
		$this->render('searchview', array('model'=>$model,'List'=>$List));
	}
}


?>
